import request from '@/axios';

export function saveOrganization(data) {
    return request({
        url: '/organization/save',
        method: 'post',
        params: data
    })
}

export function getOrganizationOption() {
    return request({
        url: '/organization/getAll',
        method: 'get'
    })
}

export function deleteOrganization(id) {
    return request({
        url: '/organization/' + id,
        method: 'delete'
    })
}

export function findById(id) {
    return request({
        url: '/organization/' + id,
        method: 'get'
    })
}
